package com.itheima.service;

import com.github.pagehelper.PageInfo;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Permission;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 权限表的增删改查
 */
public interface PermissionService {
    //增加
    void add(Permission permission);

    //删除
    @Transactional(readOnly = false)
    void delete(Integer id);

    //修改
    void edit(Permission permission);

    //查询
    Permission findById(int id);

    void deletePermissionById(int id);

    List<Permission> findAll();

    PageInfo<Permission> selectByCondition(QueryPageBean queryPageBean);
}
